package com.dbumama.market.service.provider;

import com.dbumama.market.model.ProductCategory;
import com.dbumama.market.service.api.product.ProductCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("productCategoryService")
public class ProductCategoryServiceImpl extends AbstractActivityService implements ProductCategoryService {

    @Override
    public List<ProductCategory> findRoots() {
        return ProductCategory.dao.findRoots(null);
    }

    @Override
    public ProductCategory find(Long productCategoryId) {
        return ProductCategory.dao.findById(productCategoryId);
    }

}
